﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TS.Bussiness;

namespace Tranco.Shares
{
    public partial class Public : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ConfigurationBussiness cbu = new ConfigurationBussiness();

            var config = cbu.GetConfig();
            if (config.IsClosed == 1)
                Response.Redirect("~/Maintenance.aspx");
        }
    }
}